package com.mask.im.server.netty.enums;

import lombok.AllArgsConstructor;

/**
 * @author jian
 */

@AllArgsConstructor
public enum MaskIMPushMessageEnum {
    /**
     * 私聊消息
     */
    FRIEND_MESSAGE("FRIEND", "好友消息"),
    /**
     * 群发消息
     */
    GROUP_MESSAGE("GROUP", "群聊消息"),
    /**
     * 系统消息
     */
    SYSTEM_MESSAGE("SYSTEM","系统消息");


    private final String type;

    private final String name;


    public static MaskIMPushMessageEnum messageType(String type) {
        for (MaskIMPushMessageEnum typeEnum : values()) {
            if (typeEnum.type.equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }


    public String type() {
        return this.type;
    }


}

